package com.example.propLoad;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class EnvironmentProp {
    @Autowired
    Environment environment;
    public void  printEnvironmentProp()
    {
    log.info(environment.getProperty("JAVA_HOME"));
    log.info(environment.getProperty("dataSource.business.driverClassName"));
    }
}
